//package com.tidc.seaserverweb.controller;
//
//import com.tidc.seaservermodel.entity.Fres;
//import com.tidc.seaservermodel.entity.User;
//import com.tidc.seaservermodel.exception.TidcAuthorityException;
//import com.tidc.seaservermodel.exception.TidcBadParent;
//import com.tidc.seaserverservice.service.IAuthenticationService;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//import javax.annotation.Resource;
//
///**
// * @author ：冯涛滔
// * @date ：Created in 2020/9/11 20:38
// * @description：
// * @modified By：
// * @version:
// */
//@ResponseBody
//@Controller
////@CrossOrigin(origins = "*",maxAge = 3600)
//public class LoginController {
//    @Resource
//    private IAuthenticationService iAuthenticationService;
//    @PostMapping("/ilogin")
//    public Fres<String> login(@RequestBody User user) throws TidcAuthorityException, TidcBadParent {
//        return Fres.Success(iAuthenticationService.authToken(user.getPhone(),user.getPassword()),"登入成功");
//    }
//}
